import request from '@/utils/request'

// 查询设备AST_UNIT列表
export function listAstUnit(query) {
  return request({
    url: '/ASTManage/astUnit/list',
    method: 'get',
    params: query
  })
}

// 查询设备AST_UNIT详细
export function getAstUnit(dataTime) {
  return request({
    url: '/ASTManage/astUnit/' + dataTime,
    method: 'get'
  })
}

// 新增设备AST_UNIT
export function addAstUnit(data) {
  return request({
    url: '/ASTManage/astUnit',
    method: 'post',
    data: data
  })
}

// 修改设备AST_UNIT
export function updateAstUnit(data) {
  return request({
    url: '/ASTManage/astUnit',
    method: 'put',
    data: data
  })
}

// 删除设备AST_UNIT
export function delAstUnit(dataTime) {
  return request({
    url: '/ASTManage/astUnit/' + dataTime,
    method: 'delete'
  })
}
